FROM openjdk:8-jdk-alpine
RUN  apk update && apk upgrade && apk add netcat-openbsd

# 请在当前目录下运行以下命令生成基础镜像
# docker build -t openjdk:netcat .
# docker images
# docker run --rm openjdk:netcat nc -h
